package test;

public class Course{
	public int number;  
	    String site;  
	    String time;  
	    Teacher t;  
	    Course(int number,String site,String time,Teacher t) {
	     setNumber(number);  
	     setSite(site);  
	     setTime(time);  
	     this.t = t;  
	    }  
	    public void setNumber(int number) {
	     this.number = number;  
	    }  
	    public void setSite(String site) {
	     this.site = site;  
	    }  
	    public void setTime(String time) {
	     this.time = time;  
	    }  
	    public String toString() { 
	     return "课程编号:"+ number +" 课程名称:"+t.TeachLesson+" 上课地点:"+site+" 时间:"+time;  
	    }  
	} 